package cn.wsalix.spring;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;

/**
 * @author jskyme
 * http://blog.csdn.net/fly_sky520/article/details/7589747
 * 但是每个bean 初始化的时候 这个类的方法都会被调用，而我只想插入一条数据，所以效率不好
 */
public class BeanPostPrcessorImpl implements BeanPostProcessor {

	@Override
	public Object postProcessBeforeInitialization(Object bean, String beanName)
			throws BeansException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Object postProcessAfterInitialization(Object bean, String beanName)
			throws BeansException {
		// TODO Auto-generated method stub
		return null;
	}

}
